package edu.scau.divineplace.entity.vo.message;

import edu.scau.divineplace.entity.dos.UserDO;
import edu.scau.divineplace.entity.enums.CommentTargetTypeEnum;
import edu.scau.divineplace.entity.enums.LikeTargetTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author: x1aolone
 * @Date: 2020/12/29 22:18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("LikeMessageVO")
public class LikeMessageVO {

    private static final long serialVersionUID=1L;

    @ApiModelProperty("点赞用户id")
    private Long userId;

    @ApiModelProperty("点赞用户名")
    private String userName;

    @ApiModelProperty("点赞用户头像")
    private String userAvatar;

    @ApiModelProperty("点赞时间")
    private LocalDateTime likeTime;

    @ApiModelProperty("点赞内容id")
    private Long likeTargetId;

    @ApiModelProperty("点赞内容类型")
    private LikeTargetTypeEnum likeTargetType;

    @ApiModelProperty("点赞内容详情")
    private String comment;

    @ApiModelProperty("评分、评论才有，评分/评论的内容id")
    private Long commentTargetId;

    @ApiModelProperty("评论才有，评论的方向，人物/日志")
    private CommentTargetTypeEnum commentTargetType;

}
